<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<c:set var="grant_code">
	<x:out select="$xmlData/data/proposal/grant_code" />
</c:set>
<c:set var="sub_grant_code">
	<x:out select="$xmlData/data/proposal/sub_grant_code" />
</c:set>


<div class="t_bar">资金预算</div>

<table  id="eq_table1" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<tr >
		<td align="center" width="40%">支出科目</td>
		<td align="center" width="20%">预算金额（万元）</td>
		<td align="center" width="40%">备注</td>  
	</tr>
	<tr >
		<td align="left" style="">一、直接费用</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='00']/total_invest" />
		</td>
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='00']/total_allot" />
		</td>
		
	</tr>
	<tr >
		<td align="left" style="padding-left:20px">1、设备费</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/total_allot" />
		</td>
	
	</tr>
	<tr >
		<td align="left" style="padding-left:40px">（1）购置设备费</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='02']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='02']/total_allot" />
		</td>
	</tr>
	<tr >
		<td align="left" style="padding-left:40px">（2）自制设备费</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='03']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='03']/total_allot" />
		</td>
	</tr>
	<tr >
		<td align="left" style="padding-left:40px">（3）设备改造与租赁</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='04']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='04']/total_allot" />
		</td>
	</tr>
	<tr >
		<td align="left" style="padding-left:20px">2、材料费</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='05']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='05']/total_allot" />
		</td>
	</tr>
	<tr >
		<td align="left" style="padding-left:20px">3、测试化验加工费</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='06']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='06']/total_allot" />
		</td>
	</tr>
	<tr >
		<td align="left" style="padding-left:20px">4、燃料动力费</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='07']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='07']/total_allot" />
		</td>
	</tr>
	<tr >
		<td align="left" style="padding-left:20px">5、差旅费/会议费/国际合作与交流费</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='08']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='08']/total_allot" />
		</td>
	</tr>
	<%-- <tr >
		<td align="left" style="padding-left:20px">6、会议费</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='09']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='09']/total_allot" />
		</td>
	</tr>
	<tr >
		<td align="left" style="padding-left:20px">7、国际合作与交流费</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='10']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='10']/total_allot" />
		</td>
	</tr> --%>
	<tr >
		<td align="left" style="padding-left:20px">6、信息费（出版/文献/信息传播<br/>&nbsp;&nbsp;&nbsp;&nbsp;/知识产权事物费等）</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='11']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='11']/total_allot" />
		</td>
	</tr>
	
	
	<tr >
		<td align="left" style="padding-left:20px">7、专家咨询费</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='12']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='12']/total_allot" />
		</td>
	</tr>
	
	<tr >
		<td align="left" style="padding-left:20px">8、劳务费</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='13']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='13']/total_allot" />
		</td>
	</tr>
	
	<tr >
		<td align="left" style="padding-left:20px">9、其他支出</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='14']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='14']/total_allot" />
		</td>
	</tr>
	
	<tr >
		<td align="left" style="">二、间接费用</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='15']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='15']/total_allot" />
		</td>
	</tr>
	<tr >
		<td align="left" style="padding-left:20px">1、管理费</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='16']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='16']/total_allot" />
		</td>
	</tr>
	
	<tr >
		<td align="left" style="padding-left:20px">2、绩效支出</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='17']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='17']/total_allot" />
		</td>
	</tr>
	
	
	
	<tr >
		<td align="left" style="padding-left:20px">3、其他</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='19']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='19']/total_allot" />
		</td>
	</tr>
	
	
	<tr >
		<td align="center" >合计</td>
		<td align="center">
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='18']/total_invest" />
		</td>
		
		<td >
			<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='18']/total_allot" />
		</td>
	</tr>
</table>
<div class="t_bar">拟购置科研仪器设备清单</div>
<table  id="eq_table2" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
    		<thead >
					<tr style="border:1px solid #B7D1E6">
						
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="10%">仪器名称</th>
						<th class="TblHead" align="center"  width="10%">仪器型号</th>
						<th class="TblHead" align="center"   width="8%"> 用途</th>
						<th class="TblHead" align="center"   width="9%"> 预算金额（万元）</th>
						
						
					</tr>
					
					
					
			</thead>
		<tbody id="tab">
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/equipment2s/equipment2" var="equipment2">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>	
		<tr>
			<td align="center">
					<x:out select="$equipment2/@seq_no"/>
			</td>
			<td >
				<x:out select="$equipment2/sname" />
			</td>
			<td >
					<x:out select="$equipment2/eq_type"/>
			</td>
			<td >
				<x:out select="$equipment2/use"/>
			</td>
			<td align="center">
				<x:out select="$equipment2/price_total"/>
			</td>
		
		</tr>	
    	<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
    
</table>
<table id="total2" class="t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<col style="width: 782px"/>

		<tr>
			<td align="center" >合计：</td>
		<td align="center">
				<x:out select="$xmlData/data/equipments/total_price2"/>
		</td>
		
		</tr>

</table>
<script type="text/javascript">
	$(function() {
		
		changeCss("eq_table2","total2");
	});
	
	function changeCss(id1,id2) {
		if($("#"+id1+" tr:last").attr("class")=="li_1"){
			$("#"+id2+" tr").removeClass("li_1").addClass("li_2");
		}else{
			$("#"+id2+" tr").removeClass("li_2").addClass("li_1");
		}
	}
</script>

















